package com.example.lhsama.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.lhsama.dao.RoleMapper;
import com.example.lhsama.domain.Role;
import com.example.lhsama.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Date: 2021年09月19日 15:14
 * @Author: LHSAMA
 */
@Transactional
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public void saveUidRid(Integer uid, Integer rid) {
        roleMapper.saveUidRid(uid,rid);
    }

    @Override
    public Role findRoleByName(String roleName) {
        return roleMapper.findRoleByName(roleName);
    }
}
